package org.example.pims.menu;

import java.util.ArrayList;
import java.util.List;

/**
 * 前端菜单数据
 *
 * @author bothin
 */
public class Menu {
    /**
     * 超级管理员菜单
     */
    public static List<MenuNode> MENU_SUPER_ADMIN = new ArrayList<>();
    /**
     * 管理员菜单
     */
    public static List<MenuNode> MENU_ADMIN = new ArrayList<>();

    /**
     * 检查员菜单
     */
    public static List<MenuNode> MENU_CHECK_MAN = new ArrayList<>();

    static {
        //超级管理员菜单
        MENU_SUPER_ADMIN .add(new MenuNode("home","md-home","首页"));
        MENU_SUPER_ADMIN .add(new MenuNode(null,"md-cog","个人设置",new ArrayList<MenuNode>(){
            private static final long serialVersionUID = 5693281725604621834L;
            {
                add(new MenuNode("myinfo","md-person","个人资料"));
                add(new MenuNode("password","md-lock","修改密码"));
            }}));
        MENU_SUPER_ADMIN.add(new MenuNode("admininfo","md-person","管理人员信息"));
        MENU_SUPER_ADMIN.add(new MenuNode("userinfo","ios-grid","用户信息"));
        MENU_SUPER_ADMIN.add(new MenuNode("HealthRecord","md-bicycle","出入记录"));
        MENU_SUPER_ADMIN.add(new MenuNode("HealthStatus","ios-analytics","健康状态"));
        MENU_SUPER_ADMIN.add(new MenuNode("Message","ios-notifications-outline","预警消息"));
        MENU_SUPER_ADMIN.add(new MenuNode("Feedback","ios-at-outline","用户反馈"));

        //管理员菜单
        MENU_ADMIN.add(new MenuNode("home","md-home","首页"));
        MENU_ADMIN.add(new MenuNode(null,"md-cog","个人设置",new ArrayList<MenuNode>(){
            private static final long serialVersionUID = 5693281725604621834L;
            {
                add(new MenuNode("myinfo","md-person","个人资料"));
                add(new MenuNode("password","md-lock","修改密码"));
        }}));
        MENU_ADMIN.add(new MenuNode("userinfo","ios-grid","用户信息"));
        MENU_ADMIN.add(new MenuNode("HealthRecord","md-bicycle","出入记录"));
        MENU_ADMIN.add(new MenuNode("HealthStatus","ios-analytics","健康状态"));
        MENU_ADMIN.add(new MenuNode("Message","ios-notifications-outline","预警消息"));


        //检查员菜单
        MENU_CHECK_MAN.add(new MenuNode("home","md-home","首页"));
        MENU_CHECK_MAN.add(new MenuNode(null,"md-cog","个人设置",new ArrayList<MenuNode>(){
            private static final long serialVersionUID = 5272262354728281143L;
            {
            add(new MenuNode("myinfo","md-person","个人资料"));
            add(new MenuNode("password","md-lock","修改密码"));
        }}));
        MENU_CHECK_MAN.add(new MenuNode("userinfo","ios-grid","用户信息"));
        MENU_CHECK_MAN.add(new MenuNode("HealthRecord","md-bicycle","出入记录"));
        MENU_CHECK_MAN.add(new MenuNode("HealthStatus","ios-analytics","健康状态"));
        MENU_CHECK_MAN.add(new MenuNode("Message","ios-notifications-outline","预警消息"));
    }

    /**
     * 超级管理员菜单
     */
    public static List<MenuNode> getMenuSuperAdmin(){
        return MENU_SUPER_ADMIN;
    }

    /**
     * 管理员菜单
     */
    public static List<MenuNode> getMenuAdmin(){
        return MENU_ADMIN;
    }

    /**
     * 检查员菜单
     */
    public static List<MenuNode> getMenuCheckMan(){
        return MENU_CHECK_MAN;
    }
}
